package com.zy.teacherSide.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zy.teacherSide.dao.ClassroomDao;
import com.zy.teacherSide.entity.Classroom;
import com.zy.teacherSide.service.IClassroomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 29787
 */
@Service
public class IClassroomServiceImpl extends ServiceImpl<ClassroomDao, Classroom> implements IClassroomService {

    @Autowired
    private ClassroomDao classroomDao;

    @Override
    public List<Classroom> getAllClassroom(Integer teacherId) {
        return classroomDao.getAllClassroom(teacherId);
    }

    @Override
    public Classroom getClassroomByNameAndTeacherId(String classroomName, Integer teacherId) {
        return classroomDao.getClassroomByNameAndTeacherId(classroomName,teacherId);
    }

    @Override
    public Classroom getClassroomByClassroomId(Integer classroomId) {
        return classroomDao.getClassroomByClassroomId(classroomId);
    }

}
